package com.yazi.mxz.common.entity.beans;

import com.myframework.smhj.hibernate.Entity;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * Sms entity. @author MyEclipse Persistence Tools
 */
@javax.persistence.Entity
@Table(name = "MXZ_SMS", schema = "MXZ")
public class Sms extends Entity implements java.io.Serializable {

	// Fields

	private Long smsId;
	private String toMobile;
	private Integer status;
	private Integer fail;
	private Integer type;
	private String params;
	private String result;
	private Long sendTime;
	private Long addTime;

	// Constructors

	/** default constructor */
	public Sms() {
	}

	/** minimal constructor */
	public Sms(String toMobile, Integer status, Integer fail, Integer type,
			Long sendTime, Long addTime) {
		this.toMobile = toMobile;
		this.status = status;
		this.fail = fail;
		this.type = type;
		this.sendTime = sendTime;
		this.addTime = addTime;
	}

	/** full constructor */
	public Sms(String toMobile, Integer status, Integer fail, Integer type,
			String params, String result, Long sendTime, Long addTime) {
		this.toMobile = toMobile;
		this.status = status;
		this.fail = fail;
		this.type = type;
		this.params = params;
		this.result = result;
		this.sendTime = sendTime;
		this.addTime = addTime;
	}

	// Property accessors
	@SequenceGenerator(name = "generator", sequenceName = "SEQ_SMS")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "SMS_ID", unique = true, nullable = false, precision = 15, scale = 0)
	public Long getSmsId() {
		return this.smsId;
	}

	public void setSmsId(Long smsId) {
		this.smsId = smsId;
	}

	@Column(name = "TO_MOBILE", nullable = false, length = 20)
	public String getToMobile() {
		return this.toMobile;
	}

	public void setToMobile(String toMobile) {
		this.toMobile = toMobile;
	}

	@Column(name = "STATUS", nullable = false, precision = 2, scale = 0)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "FAIL", nullable = false, precision = 2, scale = 0)
	public Integer getFail() {
		return this.fail;
	}

	public void setFail(Integer fail) {
		this.fail = fail;
	}

	@Column(name = "TYPE", nullable = false, precision = 2, scale = 0)
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "PARAMS", length = 400)
	public String getParams() {
		return this.params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	@Column(name = "RESULT", length = 300)
	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	@Column(name = "SEND_TIME", nullable = false, precision = 15, scale = 0)
	public Long getSendTime() {
		return this.sendTime;
	}

	public void setSendTime(Long sendTime) {
		this.sendTime = sendTime;
	}

	@Column(name = "ADD_TIME", nullable = false, precision = 15, scale = 0)
	public Long getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Long addTime) {
		this.addTime = addTime;
	}

}